﻿using System;
using System.Xml.Serialization;

namespace LetsDoIt
{
    /// <summary>
    /// Settings info class
    /// </summary>
	[XmlRoot("Settings")]
	public class Settings: ICloneable
	{
		public Settings()
		{
		}

        /// <summary>
        /// current/last gps device name
        /// </summary>
		[XmlElement("GpsDevice")]
		public string GpsDeviceName;
        
        /// <summary>
        /// last used user name
        /// </summary>
		[XmlElement("User")]
		public string UserName;
        
        /// <summary>
        /// last used password
        /// </summary>
		[XmlElement("Password")]
		public string Password;

        /// <summary>
        /// Interface language
        /// </summary>
        [XmlElement("language")]
        public string Language;

        /// <summary>
        /// is GPS device turned ON of OFF
        /// </summary>
        [XmlElement("useGps")]
        public bool UseGps;

        /// <summary>
        /// is GPS device turned ON of OFF
        /// </summary>
        [XmlElement("isTestData")]
        public bool UploadDataAsTest;

        /// <summary>
        /// Photo resolution Width
        /// </summary>
        [XmlElement("photoWidth")]
        public int PhotoWidth;

        /// <summary>
        /// Photo resolution Height
        /// </summary>
        [XmlElement("photoHeight")]
        public int PhotoHeight;

        public object Clone()
        {
            Settings clone = this.MemberwiseClone() as Settings;
            return clone;
        }
	}
}
